package dto

import "time"

type JourneyIncomeExpenseDetail struct {
	ID          string  `json:"id"`
	Location    string  `json:"location"`
	Currency    string  `json:"currency"`
	Amount      float64 `json:"amount"`
	Type        string  `json:"type"`
	PaymentType string  `json:"paymentType"`
	Details     string  `json:"details"`
}

type JourneyIncomeExpenseDetailResponse struct {
	JourneyIncomeExpenseDetail
	BankCardInfo
	AuditInfo
	IncomeExpenseDate time.Time `json:"incomeExpenseDate"`
	JourneyID         *string   `json:"journeyId,omitempty"`
	JourneyStartDate  *string   `json:"journeyStartDate,omitempty"`
	JourneyEndDate    *string   `json:"journeyEndDate,omitempty"`
	RegionTitle       *string   `json:"regionTitle,omitempty"`
}

type JourneyIncomeExpenseDetailResquest struct {
	JourneyIncomeExpenseDetail
	Journey struct {
		ID string `json:"id,omitempty"`
	}
	BankCard *struct {
		ID string `json:"id,omitempty"`
	}
	IncomeExpenseDate string `json:"incomeExpenseDate"`
}

type JourneyIncomeExpenseFullAddressDetailResponse struct {
	JourneyIncomeExpenseDetailResponse
	FullAddressCoordinate
	AuditInfo
}
